package com.zhengjiang.enumtest;


/**
 * @author zhengjiang
 * @version 1.0.0
 * @description
 * @date 2021/5/30
 **/
public class GenderTest {
    public static void main(String[] args) {
        for (GenderEnum e : GenderEnum.values()){
            System.out.println(e.getName());
            e.info(e.getName());
            judge(e);
        }
    }

    private static void judge(GenderEnum e){
        switch (e){
            case MALE:
                System.out.println("this is male gender!");
                break;
            case FEMAL:
                System.out.println("this is female gender!");
                break;
        }
    }
}
